package com.gz.spring.aop.xml;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopAspectjTest {

    @Test
    public void FuncByXML(){
        ApplicationContext ioc = new ClassPathXmlApplicationContext("beans07.xml");
        //这里需要用接口来接收
        Operation oper = ioc.getBean(Operation.class);
        oper.getSub(10,2);
        System.out.println("===================");
        oper.getSum(10,2);
    }

}
